<pre class="docs-method-signature"><code>link.prop(properties)</code></pre>
<p>Set properties, possibly nested, on the element model. This is equivalent to the <a href="#dia.Link.prototype.attr">attr()</a> method but this time for custom data properties.</p>

<pre><code>link.prop('name/first', 'John')
link.prop('name/first')  // 'John'
link.prop({ name: { first: 'John' } })
// Nested arrays are supported too:
link.prop('mylist/0/data/0/value', 50)
link.prop({ mylist: [ { data: [ { value: 50 } ] } ] })</code></pre>

<p>As you can see, this is the exact same method as the <a href="#dia.Element.prototype.prop">joint.dia.Element.prop()</a> method.</p>
